package com.uwaterloo.jobmineplus.mock;

import java.util.HashSet;
import java.util.Set;

import com.uwaterloo.jobmineplus.backend.ResourceRequest;
import com.uwaterloo.jobmineplus.backend.UserContextDao;
import com.uwaterloo.jobmineplus.data.Interview;
import com.uwaterloo.jobmineplus.data.InterviewType;
import com.uwaterloo.jobmineplus.data.Location;

public class MockUserContextDao implements UserContextDao{
	private static MockUserContextDao instance = null;
	
	private MockUserContextDao() {
	}
	
	@Override
	public Set<Interview> getInterviews(ResourceRequest resRequest) {
		Set<Interview> interviews = new HashSet<Interview>();
		interviews.add(new Interview("Parlay Entertainment Limited", 
									 "Automated Tester", 
									 InterviewType.NORMAL, 
									 new Location("TC", "2011"),
									 null));
		
		interviews.add(new Interview("QualComm Inc.", 
									 "SDE", 
									 InterviewType.PHONE, 
									 new Location("TC", "2011"),
									 null));
		
		interviews.add(new Interview("Amazon.com Inc", 
									 "SDE", InterviewType.VIDEO, 
									 new Location("TC", "2011"),
									 null));
		return interviews;
	}
	
	public static UserContextDao getInstance() {
		if(instance == null) {
			instance = new MockUserContextDao();
		}
		return instance;
	}
}
